package com.tgg.arcsoftfaceservice.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tgg.arcsoftfaceservice.pojo.FactInfoLog;
import com.tgg.arcsoftfaceservice.service.FactInfoLogService;
import jakarta.annotation.Resource;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 田国刚
 * @since 2024-03-18
 */
@RestController
@RequestMapping("/fact-info-log")
public class FactInfoLogController {
@Resource
    FactInfoLogService factInfoLogService;
    @PostMapping("/get")
    @ResponseBody
    public ResponseEntity<Map<String, Object>> checkFaceInfo(@RequestBody Map<String, Object> resout) throws IOException {

        Page<FactInfoLog> page = factInfoLogService.page(new Page<>(1, 1000), null);
        HashMap<String, Object> map = new HashMap<>();
        map.put("code", 200);
        map.put("message", "查询成功！");
        map.put("data", page);
        return  new ResponseEntity<>(map, HttpStatus.OK);
    }
}
